﻿<UserControl xmlns:WpfAdvControls="clr-namespace:WpfAdvControls;assembly=WpfAdvControls"
             x:Class="TfsComLib.TfsConnection.View.TfsProperties"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" mc:Ignorable="d" d:DesignHeight="80"
             d:DesignWidth="320" xmlns:wacsp="clr-namespace:WpfAdvControls.StatusPanel;assembly=WpfAdvControls"
             xmlns:wpfConverters="clr-namespace:WpfAdvControls.WpfConverters;assembly=WpfAdvControls"
             MinWidth="220" MinHeight="80" MaxHeight="80">
    <Grid MinWidth="220">
        <Grid.Resources>
            <ResourceDictionary>
                <ResourceDictionary.MergedDictionaries>
                    <ResourceDictionary
                        Source="pack://application:,,,/WpfAdvControls;component/Themes/DrawingResources.xaml" />
                    <ResourceDictionary>
                        <wpfConverters:NegativeVisibilityConverter x:Key="NegativeVisibility" />
                    </ResourceDictionary>
                </ResourceDictionary.MergedDictionaries>
            </ResourceDictionary>
        </Grid.Resources>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="80" />
            <ColumnDefinition Width="80" />
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="130" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="24" />
            <RowDefinition />
            <RowDefinition />
        </Grid.RowDefinitions>
        <Label Content="Team Foundation Server" Grid.ColumnSpan="2" />
        <Label Content="URL:" Grid.Row="1" Grid.Column="0" />
        <TextBox Margin="3,3,3,0" Name="url" VerticalAlignment="Top" IsReadOnly="True" IsReadOnlyCaretVisible="True"
                 Text="" Grid.Row="1" Grid.Column="1" Grid.ColumnSpan="3" Height="22" />
        <Label Content="Collection:" Grid.Column="0" Grid.Row="2" />
        <TextBox Margin="3" Name="collection" IsReadOnlyCaretVisible="True" IsReadOnly="True" Grid.Column="1"
                 Grid.ColumnSpan="3" Grid.Row="2" Height="22" />
        <StackPanel Grid.Column="3" Grid.Row="0" Grid.ColumnSpan="1" Orientation="Horizontal"
                    HorizontalAlignment="Right">
            <Button x:Name="connectButton" Margin="5,0,6,0" Style="{StaticResource LinkButton}"
                    Visibility="{Binding Path=IsConnected, Converter={StaticResource NegativeVisibility}}"
                    Click="connectClick">
                Connect
            </Button>
            <wacsp:ThreeStatusBox x:Name="statusBox" Width="16" Height="16" />
            <Button Background="{x:Null}" BorderBrush="{x:Null}" Foreground="{x:Null}" Height="22"
                    Name="changeConnection" Width="22" Margin="7,0,0,0" Click="changeConnection_Click">
                <Path Style="{StaticResource CogweelPath}" />
            </Button>
        </StackPanel>
    </Grid>
</UserControl>